package com.yq.design.decorator;

/**
 * @ClassName CakeDecorator
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/11/1 10:18
 * @Version 1.0
 */
public class CakeDecorator implements  Cake{

    Cake cake;

    public CakeDecorator(Cake cake) {
        this.cake = cake;
    }

    @Override
    public String nameDetails() {
        return cake.nameDetails();
    }

    @Override
    public double price() {
        return cake.price();
    }
}
